//
//  CTCommentView.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/6/1.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CTFollowList,CTListDetailUser,CTCommentListItems,CTTopic;

@protocol CTCommentViewDelegate;


@interface CTCommentView : UIView

@property (nonatomic, setter=setFollowListItem:)   CTFollowList  * followListItem;
@property (nonatomic, setter=setCommentListItems:)   NSArray  * commentListArray;
@property (nonatomic, assign)   id<CTCommentViewDelegate>delegate;

-(void)refresh;
-(void)refreshPullDownEnd;
-(void)refreshPullUpEnd;

-(void)reloadData;


@end

@protocol CTCommentViewDelegate <NSObject>

-(void)refreshControlPullDown:(CTCommentView *)view;
-(void)refreshControlPullUp:(CTCommentView *)view;

- (void)commentViewBackBtnAction:(CTCommentView *) view;
- (void)commentViewSendBtnAction:(CTCommentView *)view withText:(NSString *)textStr;
- (void)commentViewHitAttentionBtnAction:(CTCommentView *)view WithItem:(CTFollowList *)item withBool:(BOOL)attentionBool;
- (void)commentViewHitHeadAction:(CTCommentView *)view withItem:(CTFollowList *)item;
- (void)commentViewHitPicImageBtnAction:(CTCommentView *)view withItem:(CTFollowList *)item withImageView:(UIImageView *)picimageView;
- (void)commentViewHitFavourBtnAction:(CTCommentView *)view withItem:(CTFollowList *) item withBool:(BOOL)favBtnBool;
- (void)commentViewHitShareBtnAction:(CTCommentView *)view withItem:(CTFollowList *)item withImage:(UIImage *)img;
- (void)commentViewHitMoreBtnAction:(CTCommentView *)view withItem:(CTFollowList *)item;
- (void)commentViewHitFavBtnHeadAction:(CTCommentView *)view withItem:(CTListDetailUser *)item;
- (void)commentViewDeleteCommentAction:(CTCommentView *)view withItem:(CTFollowList *)item withCommentUser:(CTCommentListItems *)commentUser;
- (void)commentViewHitTopicAction:(CTCommentView *)view withItem:(CTTopic *)item;

- (void)commentViewHitHeadBtnAction:(CTCommentView *) view withItem:(CTCommentListItems *)item;

@end







@class CTListDetailUser;


@protocol CommentFavourHeadBtnDelegate;

@interface CommentFavourHeadBtn: UIButton

@property(nonatomic,assign)id<CommentFavourHeadBtnDelegate>delegate;
@property(nonatomic,setter=setListDetailUserItem:)CTListDetailUser * userItem;

-(CommentFavourHeadBtn *)creatBtn:(CommentFavourHeadBtn *)btn;

@end

@protocol CommentFavourHeadBtnDelegate <NSObject>

-(void)favourHeadBtnClickedAction:(CommentFavourHeadBtn *)btn
                     withUserItem:(CTListDetailUser *)itm;

@end
